package org.eclipse.emf.db.mariadb;

import java.sql.Connection;
import java.sql.SQLException;

import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.extensions.DBAdapterFactoryImpl;
import org.eclipse.emf.extensions.IDBSchema;
import org.eclipse.emf.extensions.mysql.MySQLSchema;

public class MariaDBSchema extends DBAdapterFactoryImpl {
    private static final String SUBPROTOCOL="mariadb"; //$NON-NLS-1$
    private static final String DRIVER_NAME="org.mariadb.jdbc.Driver"; //$NON-NLS-1$

    public MariaDBSchema() {
        super(SUBPROTOCOL, DRIVER_NAME);
    }

    @Override
    protected IDBSchema createSchema(Connection connection, EPackage pkg) throws SQLException {
        return new MySQLSchema(connection, pkg);
    }
}
